﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    class ExtNameParsedFormula
    {
        private ushort cb;
        private byte extPtg;
        private byte[] val;

        public void Read(BinaryReader reader)
        {
            this.cb = reader.ReadUInt16();
            if (this.cb == 0)
                return;
            this.extPtg = reader.ReadByte();
            this.val = reader.ReadBytes(cb - 1);
        }

        public void Write(BinaryWriter writer)
        {
            throw new NotImplementedException();
        }
    }
}